package com.blandware.atleap.webapp.form.core;

import javax.servlet.http.HttpServletRequest;
import com.blandware.atleap.webapp.form.BaseForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
import java.util.Map;
import java.util.HashMap;

/**
 * @struts.form name="menuItemForm" 
 */
public  class MenuItemForm
    extends    BaseForm
    implements java.io.Serializable
{

    protected String id;

    protected String align;

    protected String style;

    protected String styleClass;

    protected String styleId;

    protected String image;

    protected String altImage;

    protected String location;

    protected String target;

    protected String visibility;

    protected String hreflang;

    protected String ownerId;

    protected Map titleMap;

    protected Map toolTipMap;

    protected String version;

    /** Default empty constructor. */
    public MenuItemForm() {}

    public String getId()
    {
        return this.id;
    }

   /**
    */
    public void setId(String id)
    {
        this.id = id;
    }

    public String getAlign()
    {
        return this.align;
    }

   /**
    */
    public void setAlign(String align)
    {
        this.align = align;
    }

    public String getStyle()
    {
        return this.style;
    }

   /**
    */
    public void setStyle(String style)
    {
        this.style = style;
    }

    public String getStyleClass()
    {
        return this.styleClass;
    }

   /**
    */
    public void setStyleClass(String styleClass)
    {
        this.styleClass = styleClass;
    }

    public String getStyleId()
    {
        return this.styleId;
    }

   /**
    */
    public void setStyleId(String styleId)
    {
        this.styleId = styleId;
    }

    public String getImage()
    {
        return this.image;
    }

   /**
    */
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getAltImage()
    {
        return this.altImage;
    }

   /**
    */
    public void setAltImage(String altImage)
    {
        this.altImage = altImage;
    }

    public String getLocation()
    {
        return this.location;
    }

   /**
    */
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getTarget()
    {
        return this.target;
    }

   /**
    */
    public void setTarget(String target)
    {
        this.target = target;
    }

    public String getVisibility()
    {
        return this.visibility;
    }

   /**
    */
    public void setVisibility(String visibility)
    {
        this.visibility = visibility;
    }

    public String getHreflang()
    {
        return this.hreflang;
    }

   /**
    */
    public void setHreflang(String hreflang)
    {
        this.hreflang = hreflang;
    }

    public String getOwnerId()
    {
        return this.ownerId;
    }

   /**
    */
    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }

    public Map getTitleMap()
	{
		return this.titleMap;
	}
    public Object getTitle(String key)
	{
		return this.titleMap != null ? this.titleMap.get(key) : null;
	}

   /**
    */
    public void setTitleMap(Map titleMap)
	{
		this.titleMap = titleMap;
	}
    public void setTitle(String key, Object value)
	{
		if ( this.titleMap == null ) {
			this.titleMap = new HashMap();
		}
		this.titleMap.put(key, value);
	}

    public Map getToolTipMap()
	{
		return this.toolTipMap;
	}
    public Object getToolTip(String key)
	{
		return this.toolTipMap != null ? this.toolTipMap.get(key) : null;
	}

   /**
    */
    public void setToolTipMap(Map toolTipMap)
	{
		this.toolTipMap = toolTipMap;
	}
    public void setToolTip(String key, Object value)
	{
		if ( this.toolTipMap == null ) {
			this.toolTipMap = new HashMap();
		}
		this.toolTipMap.put(key, value);
	}

    public String getVersion()
    {
        return this.version;
    }

   /**
    */
    public void setVersion(String version)
    {
        this.version = version;
    }

    /**
     * @see org.apache.struts.action.ActionForm#reset(org.apache.struts.action.ActionMapping,
     *                                                javax.servlet.http.HttpServletRequest)
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        // reset any boolean data types to false

        // reset all linking properties to null

        this.ownerId = null;

// reset all mapped properties to default values

		this.titleMap = new HashMap();

		this.toolTipMap = new HashMap();

    }

}
